// 获取attr接口参数类型
export interface GetAttrListApiParams {
  category1Id: number;
  category2Id: number;
  category3Id: number;
}

export interface AttrValueItem {
  id?: number;
  valueName: string;
}

export type AttrValueList = AttrValueItem[];

export interface AttrItem {
  id?: number;
  attrName: string;
  attrValueList: AttrValueList;
}

export type AttrList = AttrItem[];

// 添加属性参数类型
export interface SaveUpdateAttrApiParams extends AttrItem {
  categoryId: number;
  categoryLevel: number;
}

// 添加属性使用的类型
export interface SaveAttrValueItem extends AttrValueItem {
  isEdit: boolean;
}

export interface SaveAttrItem extends AttrItem {
  attrValueList: SaveAttrValueItem[];
}
